find geomean of a df

67

find geomean of a df -

# Computing geometric mean
# Storing into a DataFrame column
df['Geometric Mean'] = stats.gmean(df.iloc[:, 1:3], axis=1)
df

Comments

Submit
0 Comments